from django.contrib import admin

from models import Post, Comment

# Register your models here.

# admin model for Posts:

class PostAdmin(admin.ModelAdmin):
    fields = [
        'title',
        'content',
    ]

    list_display = (
        'title',
        'pub_date',
        'last_edited',
    )

    list_filter = ['last_edited']

admin.site.register(Post, PostAdmin)

admin.site.register(Comment)
